package com.design.alex.decorator;

/**
 * @ClassName : RedShapeDecorator
 * @Description : todo
 * @Author : Alex
 * @Date: 2020-02-17 14:11
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratorShape) {
        super(decoratorShape);
    }

    @Override
    public void draw() {
        decoratorShape.draw();
        setRedBorder(decoratorShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color: Red");
    }
}
